package com.luozongyao.examiner.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author luozongyao
 * @since 2021-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Examiner对象", description="")
public class Examiner implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "审查员id")
    @TableId(value = "examiner_id", type = IdType.AUTO)
    private Integer examinerId;

    @ApiModelProperty(value = "审查员密码")
    private String examinerPwd;

    @ApiModelProperty(value = "审查员网名")
    private String examinerName;

    @ApiModelProperty(value = "审查员性别(默认1男,0女)")
    private Boolean examinerSex;

    @ApiModelProperty(value = "审查员生日")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT%2B8")
    private Date examinerBirth;

    @ApiModelProperty(value = "审查员头像")
    private String examinerAvatar;

    @ApiModelProperty(value = "审查员邮箱")
    private String examinerEmail;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "是否封号1--true封号,0--false正常使用")
    private Boolean isDisabled;

    @ApiModelProperty(value = "是否逻辑删除1--true删除，0--false正常使用")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "盐值")
    private String salt;


}
